[GdkScreenX11] Add heuristic for pre XRandR 1.3 drivers
authorAdel Gadllah <adel.gadllah@gmail.com>
Tue, 6 Apr 2010 00:36:53 +0000 (02:36 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Tue, 6 Apr 2010 00:36:53 +0000 (02:36 +0200)
commit5651cbc4b4478032238fc376f89e480c71cfa87b
treee1037f9f1f52f322cfb76406a029c4d88e376034
parente13ab6c53adae9c69d26d004c5ef49e1653057d4
[GdkScreenX11] Add heuristic for pre XRandR 1.3 drivers

Currently gdk_screen_get_primary_monitor just returns the first monitor,
in this case but both the panel and now gnome-shell use an additional
heuristic to prefer LVDS as primary if present.

Move this heuristic to gdk_screen_get_primary_monitor to avoid duplicating
it all over the place.

The fallback heuristic is also used when no primary output is set.

https://bugzilla.gnome.org/show_bug.cgi?id=614894
gdk/x11/gdkscreen-x11.c